<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let user = {
        name: "John",
        age: 30,
      };
      const userArr = Object.entries(user);

      for (let [v1, v2] of userArr) {
        console.log(v1, v2);
      }
    </script>
  </body>
</html>
